<template>
  <div id="AppView">
    <template v-if="routes.path.startsWith('/user')">
      <router-view />
    </template>
    <template v-else>
      <BasicLayOut />
    </template>
  </div>
</template>

<script setup lang="ts">
import BasicLayOut from "@/layouts/BasicLayOut.vue";
import { useRoute } from "vue-router";
import { onMounted } from "vue";

const routes = useRoute();
/**
 * 全局初始化
 */
const doInit = () => {
  console.log("欢迎来到我的项目");
};
onMounted(() => {
  doInit();
});
</script>

<style></style>
